package org.nothing.ordermaster.entity;

import lombok.Data;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;
import java.math.BigDecimal;

@Entity
@Data
public class OrderDetail implements Serializable
{
    private static final long serialVersionUID = 1L;

    @Id
    private String detailId;

    /** 订单 id. */
    private String orderId;

    /** 商品 id. */
    private String productId;

    /** 商品名称. */
    private String productName;

    /** 商品单价. */
    private BigDecimal productPrice;

    /** 商品数量. */
    private Integer productQuantity;

    /** 商品小图. */
    private String productIcon;
}
